﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.snowflake
{
	// Token: 0x020000F3 RID: 243
	public class TCreateStageStmt : TCustomSqlStatement
	{
		// Token: 0x0600082F RID: 2095 RVA: 0x00301AC5 File Offset: 0x002FFCC5
		public void setStageName(TObjectName stageName)
		{
			this.stageName = stageName;
		}

		// Token: 0x06000830 RID: 2096 RVA: 0x00301ACE File Offset: 0x002FFCCE
		public TObjectName getStageName()
		{
			return this.stageName;
		}

		// Token: 0x06000831 RID: 2097 RVA: 0x00301AD6 File Offset: 0x002FFCD6
		public TCreateStageStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstCreateStage;
		}

		// Token: 0x06000832 RID: 2098 RVA: 0x00301AEC File Offset: 0x002FFCEC
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.stageName = (TObjectName)tdummy.node1;
			return 0;
		}

		// Token: 0x06000833 RID: 2099 RVA: 0x00301B29 File Offset: 0x002FFD29
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000834 RID: 2100 RVA: 0x00301B39 File Offset: 0x002FFD39
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001204 RID: 4612
		private TObjectName stageName;
	}
}
